package com.ls.controller.model.channelIn;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @ClassName AddChannelModel
 * @Description 新增上游通道model
 * @Author pengyu
 * @Date 2019/9/13 10:17
 * @Version 1.0
 **/
@Data
@ApiModel("新增上游通道model")
public class AddChannelInModel {

    /**
     * 上游通道主键ID
     */
    @ApiModelProperty(value = "上游通道Id")
    @NotNull(message = "上游通道Id不能为空")
    private Long chanId;

    /**
     * 入库数量
     */
    @ApiModelProperty(value = "入库数量")
    @NotNull(message = "入库数量不能为空")
    @Min(value =1,message = "最小1条")
    @Max(value = 99999,message = "最大99999条")
    private Integer inNo;

}
